<?php
include_once('common/header.php');
if($AppUI->id <= 0 || (isset($_SESSION['slideshow']) && ($_SESSION['slideshow'] <= 0))) {
	$this->_redirect(HOST_BACKEND);
}
$intStatus		= $objRequest->getParam('stt', -1);
$intPage		= $objRequest->getParam('page', 1);
$intType		= $objRequest->getParam('type', 1);
$intLimit		= ADMIN_LIMIT;
$intOff			= (($intPage-1) * $intLimit);
$intTotal		= 0;
$objProduct	= new Product(); 
$arrResult		= $objProduct->getAllAlbum($intType, $intStatus, $intOff, $intLimit, $intTotal);
$this->view->arrResult		= $arrResult;
$this->view->intTotal		= $intTotal;
$this->view->intOffset		= $intOff;
$this->view->intLimit		= $intLimit;
$this->view->strUrl			= PhungTK_Function::getUrl(HOST_BACKEND);
$this->view->arrStatus		= $AppUI->type > 1 ? $arrStatusAd : $arrStatus;
$this->view->intStatus		= $intStatus;
$this->view->intType		= $intType;
?>